package com.cqy.spring.cloud.feign;

import com.cqy.spring.cloud.vo.Cqy;
import com.cqy.spring.cloud.vo.Demo;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.Valid;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class TestFeignFallBack implements TestFeign {
    @Override
    public Map<String, Object> test(Cqy cqy) {
        Map<String,Object> map =  new HashMap<>();
        map.put("fall","fallback");
        return map;
    }

    @Override
    public Demo create(@Valid Demo demo) {
        return null;
    }

    @Override
    public Demo update(@Valid Demo demo) {
        return null;
    }

    @Override
    public Demo delete(String id) {
        return null;
    }

    @Override
    public Demo get(String id, String headerValue) {
        return null;
    }

    @Override
    public List<Demo> list() {
        return null;
    }

    @Override
    public String upload(MultipartFile file) {
        return null;
    }
}
